<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app">
      <!-- title hello jack -->
      <!-- age 20 -->
      <h1>{{title}}</h1>
      <h2>{{age}}</h2>
    </div>
    <script type="module">
      import { createApp } from "./vue.esm-browser.js";

      const app = createApp({
        // 组件（对象）
        // 组件选项（对象属性）
        data() {
          return {
            title: "hello jack",
          };
        },
        setup() {
          return {
            age: 20,
          };
        },
      });
      app.mount("#app");//挂载
    </script>
  </body>
</html>
